package com.gyl.controller;

import com.gyl.domain.PageListRes;
import com.gyl.domain.QueryVo;
import com.gyl.service.SportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class SportController {
    @Autowired
    private SportService sportService;

    @RequestMapping("/sport")
    public String sport(){
        return "sport";
    }

    @RequestMapping("/sportList")
    @ResponseBody
    public PageListRes getAllSport(QueryVo vo){
        return sportService.getAllSport(vo);
    }




}
